# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=dns-spoof
pkgver=13.81ba29f
pkgrel=1
pkgdesc='Yet another DNS spoof utility.'
groups=('blackarch' 'blackarch-spoof')
arch=('x86_64' 'aarch64')
url='https://github.com/maurotfilho/dns-spoof'
license=('GPL')
depends=('libpcap')
makedepends=('git')
source=("git+https://github.com/maurotfilho/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $pkgname

  make
}

package() {
  cd $pkgname

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

